package com.csx.governance.traffic.core.context;

import com.csx.governance.traffic.core.TransportableAttributes;
import com.csx.governance.traffic.core.constants.TrafficAttributeConstants;

/**
 * @author cuisongxu
 * @date 2023/2/23 15:26
 */
public class TransportableUnit {

    private static final String OUT_LABEL = "out";

    private static final String IN_LABEL = "in";

    public static void setOutSwimLane(String swimLane) {
        TransportableAttributes.setAttribute(TrafficAttributeConstants.SWIM_LANE + OUT_LABEL, swimLane);
    }

    public static String getOutSwimLane() {
        return TransportableAttributes.getAttribute(TrafficAttributeConstants.SWIM_LANE + OUT_LABEL);
    }
}
